<<<<<<< HEAD
import {commonParams,options} from './config'
import jsonp from 'assets/js/jsonp'

export function getSingerList(){
	const url = 'https://c.y.qq.com/v8/fcg-bin/v8.fcg'
	
	var data = Object.assign({},commonParams,{
	    channel:'singer',
		page:'list',
		key:'all_all_all',
		pagesize:100,
		pagenum:1,
		g_tk:5381,
		loginUin:0,
		hostUin:0,
		format:'jsonp',
		inCharset:'utf8',
		outCharset:'utf-8',
		notice:0,
		platform:'yqq',
		needNewCode:0
	});
=======
import jsonp from 'assets/js/jsonp'
import {commonParams, options} from './config'

export function getSingerList(){
	// 定义url
	const url = 'https://c.y.qq.com/v8/fcg-bin/v8.fcg'
	// 合并参数
	var data = Object.assign({},commonParams,{
	    channel:'singer',
	    page:'list',
	    key:'all_all_all',
	    pagesize:100,
	    pagenum:1,
	    hostUin:0,
	    needNewCode:0,
	    platform:'yqq'
	});

>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
	return jsonp(url, data, options)
}

export function getSingerDetail(singerId){
	const url = 'https://c.y.qq.com/v8/fcg-bin/fcg_v8_singer_track_cp.fcg'

	var data = Object.assign({},commonParams,{
		hostUin: 0,
	    needNewCode: 0,
	    platform: 'yqq',
	    order: 'listen',
	    begin: 0,
	    num: 80,
	    songstatus: 1,
	    singermid: singerId
	})
	
	return jsonp(url, data, options)
<<<<<<< HEAD
}
=======
}
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
